{% extends 'home.html' %}
{% block content %}
{% block css %}
<link href="/static/css/kfv_yb.css" rel="stylesheet">
</link>
{% endblock %}
<form name="form1" method="post" id="form1">
    <div class="c-layout-page">
        <div class="c-content-box c-size-md c-bg-white">
            <div class="container">
                <div class="c-content-title-1">
                    <h3 class="c-center c-font-dark c-font-uppercase">卡尔费休容量法水分测定仪校准记录</h3>
                    <div class="c-line-center c-theme-bg"></div>
                    <p class="c-center"></p>
                </div>

                <div class="c-content-panel">
                    <div class="c-label">仪器基础信息输入</div>
                    <div class="c-body">
                        <div class="row">
                            <div class="col-md-12">
                                <table class="table">
                                    <tbody>
                                        <tr>
                                            <th scope="row" style="text-align:center">仪器名</th>
                                            <td colspan="2"><input name="A1PH_Name01" type="text" value="卡尔费休容量法水分测定仪"
                                                    id="A1PH_Name01" style="height:25px;width:300px"></td>
                                            <th style="text-align:center">仪器接收编号</th>
                                            <td colspan="2"><input name="A1PH_Received02" type="text"
                                                    value="{{ A1PH_Received02 }}" readonly="readonly"
                                                    id="A1PH_Received02"
                                                    style="background-color:#F3F3F3;height:25px; width:260px">
                                            </td>
                                        </tr>

                                        <tr>
                                            <th scope="row" style="text-align:center">型号/规格</th>
                                            <td><input name="A1PH_ProdModel03" type="text" id="A1PH_ProdModel03"
                                                    style="height:25px;width:240px"></td>
                                            <th style="text-align:center">仪器序列号</th>
                                            <td><input name="A1PH_SN04" type="text" id="A1PH_SN04" style="height:25px">
                                            </td>
                                            <!-- ... existing code ... -->
                                            <th style="text-align:center">环境条件</th>
                                            <td>
                                                <input name="A1PH_Wd11" type="text" id="A1PH_Wd11"
                                                    style="height:25px; width:50px"
                                                    onblur="formatToOneDecimal(this)">&nbsp;°C &nbsp;&nbsp;
                                                <input name="A1PH_Sd12" type="text" id="A1PH_Sd12"
                                                    style="height:25px; width:50px"
                                                    onblur="formatToOneDecimal(this)">&nbsp;%RH
                                                <script>
                                                    function formatToOneDecimal(inputElement) {
                                                        if (inputElement.value !== '') {
                                                            const value = parseFloat(inputElement.value);
                                                            if (!isNaN(value)) {
                                                                inputElement.value = value.toFixed(1);
                                                            }
                                                        }
                                                    }

                                                    // 页面加载时也格式化已有的值
                                                    document.addEventListener('DOMContentLoaded', function () {
                                                        formatToOneDecimal(document.getElementById('A1PH_Wd11'));
                                                        formatToOneDecimal(document.getElementById('A1PH_Sd12'));
                                                    });
                                                </script>
                                            </td>
                                            <!-- ... existing code ... -->
                                        </tr>
                                        <tr>
                                            <th style="text-align:center" scope="row">校准依据</th>
                                            <td colspan="3"><input name="A1PH_Xz06" type="text" value="JJG1154-2018"
                                                    id="A1PH_Xz06" style="height:25px;width:420px"></td>
                                            <th style="text-align:center">校准日期</th>
                                            <td>
                                                <input name="A1PH_Rq07" type="text" value="{{ date }}"
                                                    readonly="readonly" id="A1PH_Rq07"
                                                    style="background-color: #f3f3f3; height: 25px; width: 120px" />
                                            </td>
                                        </tr>

                                        <tr>
                                            <td colspan="6"
                                                style="height:20px;text-align:center;background-color:aliceblue">
                                                标准器及配套设备
                                            </td>
                                        </tr>

                                        <tr>
                                            <td colspan="6">
                                                <table class="table" id="tools">
                                                    <tbody>
                                                       <tr>

                                                            <th style="text-align:center">名称/型号</th>
                                                            <th style="text-align:center">编号</th>
                                                            <th style="text-align:center">测量范围</th>
                                                            <th style="text-align:center">批号/证书编号</th>
                                                            <th style="text-align:center">有效期</th>
                                                            <th style="text-align:center">校准机构</th>
                                                            <th style="text-align:center">计量特性</th>
                                                        </tr>
                                                        <tr>
                                                            <td><input name="BLPH_Xmxh16" type="text" id="BLPH_Xmxh16"value="/"
                                                                    style="height:25px"></td>
                                                            <td><input name="BLPH_Bh17" id="BLPH_Bh17"value="/"
                                                                    style="height:30px;width:107px;">
                                                                </td>
                                                            <td><input name="BLPH_FW_01" type="text" id="BLPH_FW_01"value="/"
                                                                    style="height:25px;width:100px"></td>
                                                            <td><input name="BLPH_Jlzsbh18" type="text"value="/"
                                                                    id="BLPH_Jlzsbh18" style="height:25px"></td>
                                                            <td><input name="BLPH_Yxrq19" type="text" id="BLPH_Yxrq19"value="/"
                                                                    style="height:25px"></td>
                                                            <td><input name="BLPH_Yzjg20" type="text" id="BLPH_Yzjg20"value="/"
                                                                    style="height:25px;width:100px"></td>
                                                            <td><input name="BLPH_Zqddj21" type="text" id="BLPH_Zqddj21"value="/"
                                                                    style="height:25px; width:100px"></td>

                                                        </tr>
                                                        <tr>
                                                            <td><input name="BLPH_Xmxh22" type="text" value="/"
                                                                    id="BLPH_Xmxh22" style="height:25px"></td>
                                                            <td><input name="BLPH_Bh23" id="BLPH_Bh23" value="/"
                                                                    style="height:30px;width:107px;">
                                                       
                                                            <td><input name="BLPH_FW_02" type="text" value="/"
                                                                    id="BLPH_FW_02" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Jlzsbh24" type="text" value="/"
                                                                    id="BLPH_Jlzsbh24" style="height:25px"></td>
                                                            <td><input name="BLPH_Yxrq25" type="text" value="/"
                                                                    id="BLPH_Yxrq25" style="height:25px"></td>
                                                            <td><input name="BLPH_Yzjg26" type="text" value="/"
                                                                    id="BLPH_Yzjg26" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Zqddj27" type="text" value="/"
                                                                    id="BLPH_Zqddj27" style="width:100px;height:25px">
                                                            </td>

                                                        </tr>
                                                        <tr>
                                                            <td><input name="BLPH_Xmxh28" type="text" value="/"
                                                                    id="BLPH_Xmxh28" style="height:25px"></td>
                                                            <td><input name="BLPH_Bh29" id="BLPH_Bh29" value="/"
                                                                    style="height:30px;width:107px;">
                                                               
                                                            <td><input name="BLPH_FW_03" type="text" value="/"
                                                                    id="BLPH_FW_03" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Jlzsbh30" type="text" value="/"
                                                                    id="BLPH_Jlzsbh30" style="height:25px"></td>
                                                            <td><input name="BLPH_Yxrq31" type="text" value="/"
                                                                    id="BLPH_Yxrq31" style="height:25px"></td>
                                                            <td><input name="BLPH_Yzjg32" type="text" value="/"
                                                                    id="BLPH_Yzjg32" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Zqddj33" type="text" value="/"
                                                                    id="BLPH_Zqddj33" style="width:100px;height:25px">
                                                            </td>

                                                        </tr>
                                                                                       <tr>
                                                            <td><input name="BLPH_Xmxh34" type="text" value="/"
                                                                    id="BLPH_Xmxh34" style="height:25px"></td>
                                                            <td><input name="BLPH_Bh35" id="BLPH_Bh35" value="/"
                                                                    style="height:30px;width:107px;">
                                                    
                                                            <td><input name="BLPH_FW_04" type="text" value="/"
                                                                    id="BLPH_FW_04" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Jlzsbh36" type="text" value="/"
                                                                    id="BLPH_Jlzsbh36" style="height:25px"></td>
                                                            <td><input name="BLPH_Yxrq37" type="text" value="/"
                                                                    id="BLPH_Yxrq37" style="height:25px"></td>
                                                            <td><input name="BLPH_Yzjg38" type="text" value="/"
                                                                    id="BLPH_Yzjg38" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Zqddj39" type="text" value="/"
                                                                    id="BLPH_Zqddj39" style="width:100px;height:25px">
                                                            </td>

                                                        </tr>
                                                        <tr>
                                                            <td><input name="BLPH_Xmxh40" type="text" value="/"
                                                                    id="BLPH_Xmxh40" style="height:25px"></td>
                                                            <td><input name="BLPH_Bh41" id="BLPH_Bh41" value="/"
                                                                    style="height:30px;width:107px;">
                                                                  

                                                                </select></td>
                                                            <td><input name="BLPH_FW_05" type="text" value="/"
                                                                    id="BLPH_FW_05" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Jlzsbh42" type="text" value="/"
                                                                    id="BLPH_Jlzsbh42" style="height:25px"></td>
                                                            <td><input name="BLPH_Yxrq43" type="text" value="/"
                                                                    id="BLPH_Yxrq43" style="height:25px"></td>
                                                            <td><input name="BLPH_Yzjg44" type="text" value="/"
                                                                    id="BLPH_Yzjg44" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Zqddj45" type="text" value="/"
                                                                    id="BLPH_Zqddj45" style="width:100px;height:25px">
                                                            </td>

                                                        </tr>
                                                          <tr>
                                                            <td><input name="BLPH_Xmxh46" type="text" value="/"
                                                                    id="BLPH_Xmxh46" style="height:25px"></td>
                                                            <td><input name="BLPH_Bh47" id="BLPH_Bh47" value="/"
                                                                    style="height:30px;width:107px;">
                                                
                                                            <td><input name="BLPH_FW_06" type="text" value="/"
                                                                    id="BLPH_FW_06" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Jlzsbh48" type="text" value="/"
                                                                    id="BLPH_Jlzsbh48" style="height:25px"></td>
                                                            <td><input name="BLPH_Yxrq49" type="text" value="/"
                                                                    id="BLPH_Yxrq49" style="height:25px"></td>
                                                            <td><input name="BLPH_Yzjg50" type="text" value="/"
                                                                    id="BLPH_Yzjg50" style="height:25px;width:100px">
                                                            </td>
                                                            <td><input name="BLPH_Zqddj51" type="text" value="/"
                                                                    id="BLPH_Zqddj51" style="width:100px;height:25px">
                                                            </td>

                                                        </tr>


                                                        <tr>
                                                            <th style="vertical-align:middle;text-align:center">生产厂商
                                                            </th>
                                                            <td colspan="6"><input name="A1PH_Sccs52" type="text"
                                                                    value="梅特勒托利多" id="A1PH_Sccs52"
                                                                    style="width:900px;height:25px"></td>


                                                        </tr>
                                                        <tr>
                                                            <th style="vertical-align:middle;text-align:center">证书单位
                                                            </th>
                                                            <td colspan="6"><input name="A1PH_Zsdw53" type="text"
                                                                    id="A1PH_Zsdw53" style="width:900px;height:25px">
                                                            </td>


                                                        </tr>
                                                        <tr>
                                                            <th style="vertical-align:middle;text-align:center">证书地址
                                                            </th>
                                                            <td colspan="6"><input name="A1PH_Zsdz54" type="text"
                                                                    id="A1PH_Zsdz54" style="width:900px;height:25px">
                                                            </td>


                                                        </tr>
                                                        <tr>
                                                            <th style="vertical-align:middle;text-align:center">校准地点
                                                            </th>
                                                            <td colspan="6"><input name="A1PH_Xzdd55" type="text"
                                                                    id="A1PH_Xzdd55" style="width:900px;height:25px">
                                                            </td>

                                                        </tr>

                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th colspan="6"
                                                style="height:15px; text-align:left;background-color:aliceblue">
                                                1. 通用技术要求
                                            </th>
                                        </tr>
                                        <tr>
                                            <th>外观及通电检查：</th>
                                            <td colspan="2">符合 <input id="A1PH_Wgjcfh56" type="checkbox"
                                                    name="A1PH_Wgjcfh56"></td>
                                            <td colspan="3">不符合 <input id="A1PH_Wgjcbfh57" type="checkbox"
                                                    name="A1PH_Wgjcbfh57"></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="c-content-panel">
                    <div class="c-label">2.水分含量示值相对误差检定</div>
                    <div class="c-body">
                        <div class="row">
                            <div class="col-md-12">
                                <table class="table">
                                    <tbody>

                                        <tr>
                                            <th style="text-align:center;vertical-align:middle; font-size:13px;">
                                                含水量<br>
                                                mg
                                            </th>
                                            <th style="text-align:center;vertical-align:middle; font-size:13px;">
                                                标准物质<br>质量 g
                                            </th>
                                            <th style="text-align:center;vertical-align:middle; font-size:13px;">
                                                水分含量<br> %
                                            </th>
                                            <th style="text-align:center;vertical-align:middle; font-size:13px;">
                                                水分含量<br>平均值 %
                                            </th>
                                            <th style="text-align:center;vertical-align:middle; font-size:13px;">
                                                水分含量示值<br>相对误差
                                                %
                                            </th>
                                            <th style="text-align:center;vertical-align:middle; font-size:13px;">技术要求
                                            </th>
                                        </tr>
                                        <tr>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">1</td>
                                            <td><input name="B1" type="text" id="B1" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B2" type="text" id="B2" onkeyup="Wonkeyup(this)"
                                                    onchange="_SetDigitalInput(2);" style="width:140px; height:25px">
                                            </td>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">
                                                <input name="B3" type="hidden" id="B3" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B9" type="text" id="B9" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset; font-size:18px; text-align:center">
                                                <input name="B15" type="hidden" id="B15" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">

                                            </td>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">

                                                <input name="B4" type="hidden" id="B4" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B10" type="text" id="B10" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset;font-size:18px; text-align:center ">
                                                <input name="B16" type="hidden" id="B16" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">

                                            </td>
                                            <td rowspan="12" style="text-align:center;vertical-align:middle">
                                                <input name="B5" type="hidden" id="B5" readonly="readonly" value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B11" type="hidden" id="B11" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B17" type="hidden" id="B17" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B23" type="hidden" id="B23" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B29" type="hidden" id="B29" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B35" type="hidden" id="B35" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B41" type="text" id="B41" readonly="readonly" value="± 7 %"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset; font-size:18px; text-align:center ">
                                                <input name="B47" type="hidden" id="B47" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B53" type="hidden" id="B53" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B59" type="hidden" id="B59" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B65" type="hidden" id="B65" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B71" type="hidden" id="B71" readonly="readonly"
                                                    value="± 7 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">

                                            </td>
                                        </tr>
                                        <tr>
                                            <td><input name="B7" type="text" id="B7" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B8" type="text" id="B8" onkeyup="Wonkeyup(this)"
                                                    onchange="_SetDigitalInput(8);" style="width:140px; height:25px">
                                            </td>


                                        </tr>
                                        <tr>

                                            <td><input name="B13" type="text" id="B13" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B14" type="text" id="B14" onkeyup="Wonkeyup(this)"
                                                    style="width:140px; height:25px" onchange="_SetDigitalInput(14);">
                                            </td>


                                        </tr>

                                        <tr>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">5</td>
                                            <td><input name="B19" type="text" id="B19" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B20" type="text" id="B20" onkeyup="Wonkeyup(this)"
                                                    onchange="_SetDigitalInput(20);" style="width:140px; height:25px">
                                            </td>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">

                                                <input name="B21" type="hidden" id="B21" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B27" type="text" id="B27" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset; text-align:center;font-size:18px;">
                                                <input name="B33" type="hidden" id="B33" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                            </td>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">
                                                <input name="B22" type="hidden" id="B22" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B28" type="text" id="B28" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset;text-align:center;font-size:18px; ">
                                                <input name="B34" type="hidden" id="B34" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                            </td>

                                        </tr>
                                        <tr>

                                            <td><input name="B25" type="text" id="B25" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B26" type="text" id="B26" onkeyup="Wonkeyup(this)"
                                                    onchange="_SetDigitalInput(26);" style="width:140px; height:25px">
                                            </td>


                                        </tr>

                                        <tr>

                                            <td><input name="B31" type="text" id="B31" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B32" type="text" id="B32" onkeyup="Wonkeyup(this)"
                                                    style="width:140px; height:25px" onchange="_SetDigitalInput(32);">
                                            </td>


                                        </tr>
                                        <tr>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">10</td>
                                            <td><input name="B37" type="text" id="B37" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B38" type="text" id="B38" onkeyup="Wonkeyup(this)"
                                                    onchange="_SetDigitalInput(38);" style="width:140px; height:25px">
                                            </td>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">
                                                <input name="B39" type="hidden" id="B39" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B45" type="text" id="B45" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset; text-align:center;font-size:18px; ">
                                                <input name="B51" type="hidden" id="B51" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">

                                            </td>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">

                                                <input name="B40" type="hidden" id="B40" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B46" type="text" id="B46" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset; text-align:center;font-size:18px; ">
                                                <input name="B52" type="hidden" id="B52" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                            </td>

                                        </tr>
                                        <tr>

                                            <td><input name="B43" type="text" id="B43" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B44" type="text" id="B44" onkeyup="Wonkeyup(this)"
                                                    onchange="_SetDigitalInput(44);" style="width:140px; height:25px">
                                            </td>


                                        </tr>
                                        <tr>

                                            <td><input name="B49" type="text" id="B49" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B50" type="text" id="B50" onkeyup="Wonkeyup(this)"
                                                    style="width:140px; height:25px" onchange="_SetDigitalInput(50);">
                                            </td>


                                        </tr>
                                        <tr>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">20</td>
                                            <td><input name="B55" type="text" id="B55" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B56" type="text" id="B56" onkeyup="Wonkeyup(this)"
                                                    onchange="_SetDigitalInput(56);" style="width:140px; height:25px">
                                            </td>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">
                                                <input name="B57" type="hidden" id="B57" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B63" type="text" id="B63" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset;text-align:center;font-size:18px; ">
                                                <input name="B69" type="hidden" id="B69" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">

                                            </td>
                                            <td rowspan="3" style="text-align:center;vertical-align:middle">
                                                <input name="B58" type="hidden" id="B58" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="B64" type="text" id="B64" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset; text-align:center;font-size:18px; ">
                                                <input name="B70" type="hidden" id="B70" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">

                                            </td>

                                        </tr>
                                        <tr>

                                            <td><input name="B61" type="text" id="B61" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B62" type="text" id="B62" onkeyup="Wonkeyup(this)"
                                                    onchange="_SetDigitalInput(62);" style="width:140px; height:25px">
                                            </td>


                                        </tr>
                                        <tr>

                                            <td><input name="B67" type="text" id="B67" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="B68" type="text" id="B68" onkeyup="Wonkeyup(this)"
                                                    style="width:140px; height:25px" onchange="_SetDigitalInput(68);">
                                            </td>


                                        </tr>

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="c-content-panel">
                    <div class="c-label">3.水分含量重复性校准</div>
                    <div class="c-body">
                        <div class="row">
                            <div class="col-md-12">
                                <table class="table">
                                    <tbody>

                                        <tr>
                                            <th style="text-align:center;vertical-align:middle">含水量<br> mg</th>
                                            <th style="text-align:center;vertical-align:middle">标准物质<br>质量 g</th>
                                            <th style="text-align:center;vertical-align:middle">水分含量<br> %</th>
                                            <th style="text-align:center;vertical-align:middle">水分含量<br>平均值 %
                                            </th>
                                            <th style="text-align:center;vertical-align:middle">相对标准偏差%</th>
                                            <th style="text-align:center;vertical-align:middle">技术要求</th>
                                        </tr>
                                        <tr>
                                            <td rowspan="6" style="text-align:center;vertical-align:middle">5</td>
                                            <td><input name="C1" type="text" id="C1" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="C2" type="text" id="C2" onkeyup="Wonkeyup(this)"
                                                    onchange="SetDigitalInputC(2);" style="width:140px; height:25px">
                                            </td>
                                            <td rowspan="6" style="text-align:center;vertical-align:middle">

                                                <input name="C3" type="hidden" id="C3" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C9" type="hidden" id="C9" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C15" type="hidden" id="C15" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C21" type="text" id="C21" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset;font-size:18px; text-align:center">
                                                <input name="C27" type="hidden" id="C27" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C33" type="hidden" id="C33" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">

                                            </td>
                                            <td rowspan="6" style="text-align:center;vertical-align:middle">
                                                <input name="C4" type="hidden" id="C4" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C10" type="hidden" id="C10" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C16" type="text" id="C16" readonly="readonly"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset;font-size:18px; text-align:center">
                                                <input name="C22" type="hidden" id="C22" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C28" type="hidden" id="C28" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C34" type="hidden" id="C34" readonly="readonly"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">


                                            </td>
                                            <td rowspan="6" style="text-align:center;vertical-align:middle">
                                                <input name="C5" type="hidden" id="C5" readonly="readonly" value="≤ 3 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C11" type="hidden" id="C11" readonly="readonly"
                                                    value="≤ 3 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C17" type="hidden" id="C17" readonly="readonly"
                                                    value="≤ 3 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C23" type="text" id="C23" readonly="readonly" value="≤ 3 %"
                                                    style="width:140px; height:55px;border-width: 0px; border-style: inset; font-size:18px; text-align:center">
                                                <input name="C29" type="hidden" id="C29" readonly="readonly"
                                                    value="≤ 3 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">
                                                <input name="C35" type="hidden" id="C35" readonly="readonly"
                                                    value="≤ 3 %"
                                                    style="width:140px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3">

                                            </td>
                                        </tr>
                                        <tr>

                                            <td><input name="C7" type="text" id="C7" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="C8" type="text" id="C8" onkeyup="Wonkeyup(this)"
                                                    onchange="SetDigitalInputC(8);" style="width:140px; height:25px">
                                            </td>


                                        </tr>
                                        <tr>

                                            <td><input name="C13" type="text" id="C13" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="C14" type="text" id="C14" onkeyup="Wonkeyup(this)"
                                                    onchange="SetDigitalInputC(14);" style="width:140px; height:25px">
                                            </td>


                                        </tr>
                                        <tr>

                                            <td><input name="C19" type="text" id="C19" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="C20" type="text" id="C20" onkeyup="Wonkeyup(this)"
                                                    onchange="SetDigitalInputC(20);" style="width:140px; height:25px">
                                            </td>


                                        </tr>
                                        <tr>

                                            <td><input name="C25" type="text" id="C25" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="C26" type="text" id="C26" onkeyup="Wonkeyup(this)"
                                                    onchange="SetDigitalInputC(26);" style="width:140px; height:25px">
                                            </td>


                                        </tr>
                                        <tr>

                                            <td><input name="C31" type="text" id="C31" style="width:140px; height:25px">
                                            </td>
                                            <td><input name="C32" type="text" id="C32" onkeyup="Wonkeyup(this)"
                                                    style="width:140px; height:25px" onchange="SetDigitalInputC(32);">
                                            </td>


                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="c-content-panel">
                    <div class="c-label">4.本次校准结果的扩展不确定度 (<i>k</i>=2)</div>
                    <div class="c-body">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="table-responsive">
                                    <table class="table">
                                        <tbody>

                                            <tr>

                                                <th colspan="2">示值误差<i>Urel</i>= <input name="K0" type="text" id="K0"
                                                        value="1.4" style="width:110px; height:25px">
                                                    %
                                                </th>
                                                <!--<th>k = --><input name="K1" type="hidden" id="K1"
                                                    style="width:110px; height:25px"> <!--</th>-->
                                            </tr>


                                        </tbody>
                                    </table>
                                </div>
                                <div class="table-responsive">
                                    <table class="table table-bordered">

                                        <tbody>
                                            <tr>
                                                <th>校准员：</th>
                                                <td><input name="calibrator" type="text" id="calibrator"
                                                        style="width:110px; height:25px;border-width: 0.5px; border-style: inset; background-color: #F3F3F3"
                                                        value="刘宁强"></td>
                                                <th>核验员</th>
                                                <td><input name="inspector_Users" type="text" id="inspector_Users"
                                                        style="width:110px; height:25px"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <div class="S001">
                                        <br>
                                        <table>
                                            <tbody>
                                                <!-- <tr>
                                                    <td colspan="5" align="center">
                                                        <input type="submit" name="Button2" value="提交校准"
                                                            onclick="javascript:if(Button2_onclick()==false) return false;"
                                                            id="Button2" style="width:80px;">
                                                    </td>

                                                </tr> -->

                                                <tr>
                                                    <td colspan="5" align="center">
                                                        <a href="/list/" class="btn btn-default btn-xs" style="margin-top: 10px;width: 80px;">取  消</a>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</form>


{% endblock %}

{% block js %}
<script src="/static/js/kfv_yb.js" type="text/javascript"></script>
<script src="/static/bootstrap/js/jquery.min.js" type="text/javascript"></script>
<script>

    $(document).ready(function () {
        var data_obj = {{ obj | safe }}

        $.each(data_obj, function (key, value) {
            var inputSelector = $('input[name="' + key + '"]');
            if (inputSelector.length) {
                inputSelector.val(value);
                inputSelector.attr("readonly", "readonly");
            }

            $('select[name="BLPH_Bh17"]').val(data_obj["BLPH_Bh17"]);
            $('#submit').attr("disabled", "disabled");
            $('select').attr("disabled", "disabled");
            $('input').attr("disabled", "disabled");

        });
        })

</script>

{% endblock %}